/// Author: QP
/// Version: 1.0
/// Date:2021/07
/// 互联互通文档头-医师签名信息子表
Class HCC.SQL.Document.Header.Authenticator Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ DependsOn = HCC.SQL.Base ]
{

/// 文档编号
Relationship DocumentNo As HCC.SQL.Document.Header [ Cardinality = parent, Inverse = Authenticators ];

Index DocumentNoIndex On DocumentNo;

// Property time As WS.DE.DE090005300 [ SqlFieldName = time ];

/// 签名日期时间
Property time As WS.DE.DE060004800 [ SqlFieldName = time ];

/// 签名代码
Property signatureCode As %String [ SqlFieldName = sig_code ];

/// 签名人指定id
Property assignedEntityId As %String [ SqlFieldName = asgnEnty_id ];

/// 医务人员/机构类别
Property assignedEntityCode As %String(VALUELIST = ",编码员,产程检查者,处方发药药剂师,处方核对药剂师,处方开立医师,处方审核药剂师,处方调配药剂师,代理人,护士,护婴者,患者,会诊申请医疗机构,会诊申请医师,会诊所在机构,会诊医师,记录人,检查技师,检查医师,检验医师,交班者,交班者签名,交接护士,接班者,接班者签名,接生者,接诊医师,进修医师,科主任,麻醉医师,配偶,器械护士,上级医师,审核医师,实习医师,手术操作者,手术者,巡台护士,医师,医嘱执行者,责任护士,指导者,主持人签名,主任(副主任)医师,主任(副主任),主持人,主任医师,主治医师,助产者,助手,住院医师,转出医师,转入医师,转运者,出院医嘱开立人,检验技师,接诊护士,审核护士") [ Required, SqlFieldName = asgnEnty_code ];

/// 医生姓名
Property assignedPersonName As WS.DE.DE020103900 [ Required, SqlFieldName = asgnPers_name ];

/// 专业技术职务
Property profTechPosCode As WS.DE.DE083003100 [ SqlFieldName = profTechPos_code ];

/// 科室名称 （用于WST500.45）
Property orgName As %String [ SqlFieldName = org_name ];

/// 医疗机构名称、会诊医师所在医疗机构名称（用于WST500.45）
Property wholeOrgName As %String [ SqlFieldName = whole_org_name ];

/// 医疗机构Id （用于WST500.45）
Property wholeOrgId As %String [ SqlFieldName = whole_org_id ];


}
